package com.L1ngg.Demo1;

import java.util.Scanner;

// 该类用于依次输出三位数的各个位
public class text01 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();

        int ge = num % 10;
        int shi = num / 10 % 10;
        int bai = num / 100 % 10;

        System.out.println(ge);
        System.out.println(shi);
        System.out.println(bai);
    }
}
